package com.gxgeek.threadpoolexecutor.submit;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

/**
 * @author gaoxing
 * @create 2017-12-20 上午10:49
 */
public class Submit {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
//        Runnable runnable = new Runnable() {
//            public void run() {
//                System.out.println("This is ThreadPoolExetor#submit(Runnable runnable) method.");
//            }
//        };
//
//        ExecutorService executor = Executors.newSingleThreadExecutor();
//        Future future = executor.submit(runnable);
//        System.out.println(future.get());


    }
}